#include<iostream>
#include<math.h>
#include <string>
using namespace std;
class Data {
protected:
int zi;
int luna;
int an;
public:
Data();
Data(int zi, int luna, int an);
friend ostream& operator<<(ostream& afiseaza, const Data& d);
int getZi();
int getLuna();
int getAn();
void setZi(int zi);
void setLuna(int luna);
void setAn(int an);
bool anBisect();
int checkZile(int luna);
int difZile(Data d);
bool operator>=(Data d);
};
class Examen {
protected:
Data d;
string materie;
public:
Examen();
Examen(Data d, string materie);
friend ostream& operator<<(ostream& scrie, const Examen& ex);
Data getData();
void setData(Data d);
string getMaterie();
};
class Examene {
protected:
Examen ex[100];
public:
Examene(Examen ex[100]);
void afiseaza();
void ordoneaza();
int getNrExamene();
int zileMin();
};
